package com.worthtech.billportal.bean;

/**
 * CsDicEsbId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class CsDicEsbId implements java.io.Serializable {

	// Fields

	private String serviceId;
	private String validflag;

	// Constructors

	/** default constructor */
	public CsDicEsbId() {
	}

	/** full constructor */
	public CsDicEsbId(String serviceId, String validflag) {
		this.serviceId = serviceId;
		this.validflag = validflag;
	}

	// Property accessors

	public String getServiceId() {
		return this.serviceId;
	}

	public void setServiceId(String serviceId) {
		this.serviceId = serviceId;
	}

	public String getValidflag() {
		return this.validflag;
	}

	public void setValidflag(String validflag) {
		this.validflag = validflag;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CsDicEsbId))
			return false;
		CsDicEsbId castOther = (CsDicEsbId) other;

		return ((this.getServiceId() == castOther.getServiceId()) || (this
				.getServiceId() != null
				&& castOther.getServiceId() != null && this.getServiceId()
				.equals(castOther.getServiceId())))
				&& ((this.getValidflag() == castOther.getValidflag()) || (this
						.getValidflag() != null
						&& castOther.getValidflag() != null && this
						.getValidflag().equals(castOther.getValidflag())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getServiceId() == null ? 0 : this.getServiceId().hashCode());
		result = 37 * result
				+ (getValidflag() == null ? 0 : this.getValidflag().hashCode());
		return result;
	}

}